package cn.stylefeng.guns.modular.demos.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjj
 * @since 2020-10-09
 */
@TableName("cms_article")
public class CmsArticle implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 类别来源与字典code：SYS_ARTICLE_CATEGORY
     */
    @TableField("category_id")
    private Integer categoryId;

    /**
     * 类别来源与字典code：SYS_ARTICLE_CONTENT_TYPE
     */
    @TableField("content_type")
    private Integer contentType;

    /**
     * 状态 来源与字典code：SYS_ARTICLE_STATUS
     */
    @TableField("status")
    private Integer status;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 副标题
     */
    @TableField("sub_title")
    private String subTitle;

    /**
     * 摘要
     */
    @TableField("summary")
    private String summary;

    /**
     * 图片1 Id
     */
    @TableField("banner_img1_id")
    private Long bannerImg1Id;

    /**
     * 图片2 id
     */
    @TableField("banner_img2_id")
    private Long bannerImg2Id;

    /**
     * 图片3 id
     */
    @TableField("banner_img3_id")
    private Long bannerImg3Id;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 创建用户Id
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新用户
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 版本
     */
    @TableField("version")
    private Integer version;

    /**
     * 是否删除0:否，-1: 删除
     */
    @TableField("del_flag")
    private Integer delFlag;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getContentType() {
        return contentType;
    }

    public void setContentType(Integer contentType) {
        this.contentType = contentType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Long getBannerImg1Id() {
        return bannerImg1Id;
    }

    public void setBannerImg1Id(Long bannerImg1Id) {
        this.bannerImg1Id = bannerImg1Id;
    }

    public Long getBannerImg2Id() {
        return bannerImg2Id;
    }

    public void setBannerImg2Id(Long bannerImg2Id) {
        this.bannerImg2Id = bannerImg2Id;
    }

    public Long getBannerImg3Id() {
        return bannerImg3Id;
    }

    public void setBannerImg3Id(Long bannerImg3Id) {
        this.bannerImg3Id = bannerImg3Id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "CmsArticle{" +
        "id=" + id +
        ", categoryId=" + categoryId +
        ", contentType=" + contentType +
        ", status=" + status +
        ", title=" + title +
        ", subTitle=" + subTitle +
        ", summary=" + summary +
        ", bannerImg1Id=" + bannerImg1Id +
        ", bannerImg2Id=" + bannerImg2Id +
        ", bannerImg3Id=" + bannerImg3Id +
        ", content=" + content +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", version=" + version +
        ", delFlag=" + delFlag +
        "}";
    }
}
